package com.lhq.web.controller.test;

import com.lhq.common.annotation.Anonymous;
import com.lhq.common.core.domain.AjaxResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lhq
 * @version 1.0
 * @date 2024/3/12 16:22
 */
@RestController
@RequestMapping("/demo")
public class DemoController {
    @Anonymous
    @PostMapping("/test")
    public AjaxResult list(@RequestBody Test test)
    {
        System.out.println(test);
        return AjaxResult.success();
    }
}
